public class Text {
    public static void main(String[] args) {
        int[] array={1,2,34,3,4,5,7,23,12};
        boolean ret=func(array);
        System.out.println(ret);
    }
    public static boolean func(int[] array){
        int ret=0;
        for (int i = 0; i < array.length; i++) {
            if(array[i]%2!=0){
                ret++;
            }else{
                ret=0;
            }
            if(ret==3){
                return true;
            }
        }
        return false;
    }
}
